/*************************************************************************** 
 * (c) 2006 Dmitry Osinovsky, osdmsoftware@gmail.com
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Lesser General Public License as        *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Reflection;

namespace OsdmSoftware.PocketPicture
{
    public partial class AboutDialog: Form
    {
        public AboutDialog()
        {
            InitializeComponent();
            AssemblyCopyrightAttribute aca = (AssemblyCopyrightAttribute) Attribute.GetCustomAttribute(Assembly.GetExecutingAssembly(), typeof(AssemblyCopyrightAttribute));
            TextBox.Text =
                Assembly.GetExecutingAssembly().GetName().Name + " " + Assembly.GetExecutingAssembly().GetName().Version.ToString() + "\r\n" +
                "Check for new versions and suggest new features at http://osdmsoftware.googlepages.com/pocketpicture.\r\n" +
                aca.Copyright + "\r\n" +
                "This software is free, available under GNU Lesser General Public License, see license text at installation folder.\r\n" +
                "Portions Copyright (c) 2006 Rick Brewster, Chris Crosetto, Dennis Dietrich, Tom Jackson, " +
                "Michael Kelsey, Brandon Ortiz, Craig Taylor, Chris Trevino, and Luke Walker.\r\n" +
                "Portions Copyright (c) 2006 Microsoft Corporation. All Rights Reserved.\r\n" +
                "Part of this software available under MIT License, see license text at installation folder.\r\n";
        }

        private void button2_Click(object sender, EventArgs e)
        {
            if (TextBox.SelectionLength > 0)
                Clipboard.SetDataObject(TextBox.SelectedText);
            else
                Clipboard.SetDataObject(TextBox.Text);
        }

        private void menuItem1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}